package com.itheima07;

public class Test {
    public static void main(String[] args) {
        method(10, new JieKou() {
            @Override
            public void methodAb(int num) {
                System.out.println(num);
            }
        });
        method(20, (num) -> {
            System.out.println(num);
        });
    }

    public static void method(int x, JieKou j) {
        j.methodAb(x);
    }
}
